<?
require_once("rest_request.php");
//REST PUB.VN
$rest_url_pub            	= "http://localhost:9000/authorize/api/api.php";
$rest_url_pub            	= "http://slave.vatgia.com/authorize/api/api.php";
//Basic Authentication
$rest_user_name_pub			= "id.vatgia.com";
$rest_password_pub			= 'b#2nb9o$hh9&blfdsfs';
$rest_access_key_id_pub	 	= "id.vatgia.com";
$rest_share_key_pub		 	= "fdsjfldsaj;l2wrjlewjrlfldsfds";

$myRS = new Request_Security( $rest_access_key_id_pub, $rest_share_key_pub, $rest_url_pub);
$myRS	->Set_Digest_Authentication($rest_user_name_pub, $rest_password_pub);
$myRS ->domain = "id.vatgia.com";
//hàm kiểm tra đăng nhập và lấy thông tin user 
//$myRS->call("loginGetDataUser", array("username" => "dinhtoan1905", "password" => '123456a'));
$myRS->call("getProductDetail", array("iPro" => 1394479, "tskt" => 1));
$rs 		= $myRS->Post_Data("json", 1);
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
print_r($rs);
?>